package com.example.demo.service.impl;

import com.example.demo.dao.Campus_picDao;
import com.example.demo.dao.PictureDao;
import com.example.demo.entity.Campus_pic;
import com.example.demo.service.Campus_picService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class Campus_picServiceImpl implements Campus_picService{

    //注入Mapper接口对象
    @Resource
    private Campus_picDao campus_picDao;
    @Override
    public List<Campus_pic> listCampus_pic() {
        return campus_picDao.listCampus_pic();
    }

    @Override
    public int insertCampus_pic(Campus_pic campus_pic) {
        return campus_picDao.insertCampus_pic(campus_pic);
    }

    @Override
    public void deleteCampus_pic(int id) {
        campus_picDao.deleteCampus_pic(id);
    }

    @Override
    public Campus_pic selectidCampus_pic(int id) {
        return campus_picDao.selectidCampus_pic(id);
    }
}
